# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=crda
pkgver=4.14
pkgrel=0
pkgdesc="Linux Central Regulatory Domain Agent"
url="https://wireless.wiki.kernel.org/en/developers/Regulatory/CRDA"
arch=""
license="GPL"
depends="wireless-regdb"
makedepends="linux-headers libnl-dev py2-m2crypto libgcrypt-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git/snapshot/$pkgname-$pkgver.tar.gz
	01-Makefile-dont-run-ldconfig.patch"

builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	sed 's/-Werror//' -i $builddir/Makefile
}

build() {
	cd "$builddir"
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="0d52cf62589ec2debfd66de95b82b03a1c15048d8425cf5ef43c3e1f51ce1311a6d898fd5f69badcceb3181d35c836db197c6f070654dab351b01e96a1dd1053  crda-4.14.tar.gz
c642976b193722c0050c13331a010b466cea8391bb5f945832604a556e274ea1a4b289c78f74ff5d502fae800f18219db3d10ff10c0528eefc5e9443a963640f  01-Makefile-dont-run-ldconfig.patch"
